<template>
  <div>
    欢迎{{ user_list.username }}
  </div>
</template>

<script>
export default {
data(){
  return{
    username:'',
    user_list:{
      id: "",
      username: "",
      account: "",
      mobile: "",
      mail: "",
      role: "",
      department: "",
      rank: "",
      posts: "",
      state: ""
    }
  }
},
mounted(){
  this.getUser()
},
methods:{
  getUser(){
    this.$axios.get('users/api/v1/usermanager/')
    .then(res =>{
      console.log(res)
      if (res.data.code == 200){
        this.user_list = res.data.user
      }
    })
  }
}
}
</script>

<style>

</style>